package com.project.mapper;

import com.project.bean.UserBean;
import org.apache.ibatis.annotations.*;

@Mapper
public interface IUserMapper {

    public UserBean login(@Param("name") String userName, @Param("pwd") String pwd);
    @Insert("insert into t_user(u_name,u_pwd,u_email,u_imgPath,u_date)" +
            "values(#{name},#{pwd},#{email},#{imgPath},#{date})"
    )
    public void add(UserBean userBean);
@Select("select * from t_user where u_name=#{name}")
@ResultMap("userMap")
    public UserBean checkName(String name);

}
